package com.ruoyi.wbgame.domain;

import com.sun.org.apache.xpath.internal.operations.Bool;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 问题对象 wb_question
 * 
 * @author guguofu
 * @date 2021-04-16
 */
public class WbQuestion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问题id */
    private Long questionId;

    /** 问题内容 */
    @Excel(name = "问题内容")
    private String questuionContent;

    /** 知识点类型id */
    private Integer questionTypeId;

    /** 题型id */
    private Integer itemTypeId;

    /** 选项内容 */
    private List<WbOption> options;

    /** 选项的正误 */
    private List<Boolean> optionRW;

    /** 最高分 */
    @Excel(name = "最高分")
    private Long topScore;

    /** 最低分 */
    @Excel(name = "最低分")
    private Long lowestMark;

    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setQuestuionContent(String questuionContent) 
    {
        this.questuionContent = questuionContent;
    }

    public String getQuestuionContent() 
    {
        return questuionContent;
    }
    public void setTopScore(Long topScore) 
    {
        this.topScore = topScore;
    }

    public Long getTopScore() 
    {
        return topScore;
    }
    public void setLowestMark(Long lowestMark) 
    {
        this.lowestMark = lowestMark;
    }

    public Long getLowestMark() 
    {
        return lowestMark;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }


    public List<WbOption> getOptions() {
        return options;
    }

    public void setOptions(List<WbOption> options) {
        this.options = options;
    }

    public List<Boolean> getOptionRW() {
        return optionRW;
    }

    public void setOptionRW(List<Boolean> optionRW) {
        this.optionRW = optionRW;
    }

    public Integer getQuestionTypeId() {
        return questionTypeId;
    }

    public void setQuestionTypeId(Integer questionTypeId) {
        this.questionTypeId = questionTypeId;
    }

    public Integer getItemTypeId() {
        return itemTypeId;
    }

    public void setItemTypeId(Integer itemTypeId) {
        this.itemTypeId = itemTypeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("questionId", getQuestionId())
            .append("questuionContent", getQuestuionContent())
            .append("options",options)
            .append("optionRW",optionRW)
            .append("topScore", getTopScore())
            .append("lowestMark", getLowestMark())
            .append("questionTypeId",questionTypeId)
            .append("itemTypeId",itemTypeId)
            .toString();
    }
}
